﻿{#if ($T.TotalRecord > 0)}
<table cellspacing="0" cellpadding="0" class="cssgrid" width="100%">
    <tbody>
        <tr class="category">
            <td width="3%" align="center" class="headercart productcategory" style="border-top: 1px solid #99BBE8;">
                <span class="norB">STT</span>
            </td>
            <td width="10%" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Admin</span>
            </td>
            <td width="10%" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Chức năng</span>
            </td>
            <td width="10%" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Hành động</span>
            </td>
            <td width="55%" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Nội dung</span>
            </td>
            <td width="15%" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Thời gian</span>
            </td>
            <td width="15%" align="center" class="headercart" style="border-top: 1px solid #99BBE8;">
                <span class="norB">Hệ thống</span>
            </td>
        </tr>
        {#foreach $T.Items as item}
       {#if ($T.item$index % 2 == 0)}
        <tr id="trItem" class="odd">
            {#else}
            <tr id="trItem" class="even">
                {#/if}
                <td align="center" class="headercart productcategory">
                    <span>{$T.item.RowNumber}</span>
                </td>
                <td align="center" class="headercart">
                    <span>{$T.item.UserName}</span>
                </td>
                <td align="center" class="headercart">
                    <span>{$T.item.Function}</span>
                </td>
                <td align="center" class="headercart">
                    <span>{Pages_ListLog.getAction($T.item.Action)}</span>
                </td>
                <td align="center" class="headercart" style="text-align: left">
                    <span>{Encoder.htmlDecode($T.item.Info)}</span>
                </td>
                <td align="center" class="headercart">
                    <span>{COMMON.jSonDateToString($T.item.CreateDate,2)}</span>
                </td>
                <td align="center" class="headercart">
                    <span>
                        {#if $T.item.ServicesId==1}
                            Hilo
                        {#/if}
                    </span>
                </td>
            </tr>
        {#/for}
    </tbody>
</table>
{#else}
<div class="notice_msg">
    Không có bản ghi nào
</div>
{#/if}
<div style="clear: both;">
</div>

